package com.itheima.variable;

/**
 * @author yuanying
 * @date 2025/7/22 -  9:13
 */
public class ForDemo1 {
    public static void main(String[] args) {
        int sum=0;
        for (int i=1;i<=5;i++){
            sum=sum+i;
        }
        System.out.println("求和结果是"+sum);
    }
}
